Mega Code Archive

Categories
1) Android
2) ASP.Net
3) ASP.Net Tutorial
4) C
5) C Tutorial
6) C#
7) C# Book
8) C# by API
9) C# Tutorial
10) C++
11) C++ Tutorial
12) Delphi
13) Flash ActionScript
14) Flex
15) Java
16) Java Book
17) Java by API
18) Java Tutorial
19) JavaScript DHTML
20) JavaScript Reference
21) JavaScript Tutorial
22) MSOfficeExcel 2007 Tutorial
23) MSOfficePowerPoint 2007 Tutorial
24) MSOfficeWord 2007 Tutorial
25) MSSQL
26) MSSQL Tutorial
27) MySQL
28) MySQL Tutorial
29) Oracle PLSQL
30) Oracle PLSQL Tutorial
31) Perl
32) Php
33) PostgreSQL
34) Python
35) Python Tutorial
36) Ruby
37) Silverlight
38) VB.Net
39) VB.Net by API
40) VB.Net Tutorial
41) Visual C++ .NET
42) VisualBasic Script
43) XML
44) XML Tutorial
 
MSSQL Tutorial
1) Aggregate Functions
2) Analytical Functions
3) CLR
4) Constraints
5) Cursor
6) Data Convert Functions
7) Data Types
8) Database
9) Date Functions
10) Index
11) Insert Delete Update
12) Math Functions
13) Procedure Function
14) Query
15) Sequence Indentity
16) Set Operations
17) String Functions
18) Subquery
19) System Functions
20) System Settings
21) System Tables Views
22) Table
23) Table Join
24) Transact SQL
25) Transaction
26) Trigger
27) User Role
28) View
29) XML
Data Convert Functions
1) A SELECT statement that substitutes a different data type
2) A SELECT statement that uses the COALESCE function
3) COALESCE is equivalent to a CASE expression that returns the first NOT NULL expression in a list of expressions
4) COALESCE() saves quite a lot of IF or CASE decision logic
5) Code that tests whether a database exists before it deletes it
6) Combine CAST and ISNULL
7) Compare date type value after converting
8) Conversion failed when converting the varchar value abc to data type int
9) CONVERT function syntax
10) CONVERT() function requires two arguments
11) CONVERT(char(10), GETDATE(), 112)
12) CONVERT(char(8), BillingDate, 1) and CONVERT(varchar(9), PaymentTotal, 1)
13) CONVERT(datetime, 20000704)
14) CONVERT(varchar(10), advance, 2)
15) CONVERT(varchar(12), OrderDate, 5)
16) CONVERT(varchar(20), GETDATE())
17) CONVERT(varchar,BillingDate,100) Mmm dd yyyy hh
18) CONVERT(varchar,BillingDate,101) mmddyyyy
19) CONVERT(varchar,BillingDate,103) ddmmyyyy
20) Data type conversion can be performed using the CAST() and CONVERT() functions
21) Performing Flexible Searches Using ISNULL
22) Replacing null values with zero values with ISNULL
23) Returning a NULL Value When Two Expressions Are Equal
24) Returning the First Non NULL Value in a List of Expressions
25) SELECT ANSI Date
26) SELECT CAST(123 4 AS Decimal)
27) Select CAST(2002-09-30 11
28) Select CAST(CAST(2002-09-30 AS datetime) - CAST(2001-12-01 AS datetime) AS int)
29) Select CONVERT (INTEGER , 123)
30) SELECT CONVERT(datetime, 10 12 99,1)
31) SELECT CONVERT(datetime, 10 12 99,4)
32) SELECT CONVERT(VarChar(50), @Num, 0)
33) SELECT Default Date
34) SELECT German Date
35) SELECT statement using the ISNULL function
36) SELECT UKFrench Date
37) SELECT US Date
38) System function ISNULL allows a display of the specified value as substitution for NULL
39) The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value
40) The DROP Database Statement
41) The syntax of the CAST function
42) The syntax of the CONVERT function CONVERT(data_type, expression [, style])
43) The syntax of the ISNULL function
44) Update and ISNULL
45) Use cast function in dynamic sql
46) Use convert function with variables
47) Values for the style argument of the CONVERT function when you convert a datetime expression to a character express